package com.usefullc.crawler.query;

import com.baomidou.mybatisplus.annotation.TableField;
import com.usefullc.common.enums.QueryExpressTypeEnum;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.system.query.BaseQuery;
import com.usefullc.system.validator.UsefulPropertyVerify;
import com.usefullc.system.service.component.extend.UsefulQueryField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 爬虫输出模板查询实体
 * @author: 星空
 * @date: 2022-12-15
 */
@ApiModel
@Data
public class OutputTemplateQuery extends BaseQuery {

//useful_auto_generate_section_start

    @UsefulQueryField()
    @ApiModelProperty(notes = "爬虫模版ID")
    private Long templateId;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=50)
    @ApiModelProperty(notes = "模板名称")
    private String name;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=20)
    @ApiModelProperty(notes = "描述")
    private String description;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=500)
    @ApiModelProperty(notes = "链接")
    private String url;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=100)
    @ApiModelProperty(notes = "用户(jdbc)")
    private String user;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=50)
    @ApiModelProperty(notes = "密码(jdbc)")
    private String password;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=50)
    @ApiModelProperty(notes = "类型(http,jdbc)")
    private String type;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=20)
    @ApiModelProperty(notes = "方法(http)")
    private String method;


//useful_auto_generate_section_end

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "用户")
    private Long userId;

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "范围（0 公共，1 私有）")
    private Integer scope;

}
